<?php
/**
 * Mysql.php
 *
 * @category    Madoqua
 * @package     Module
 * @subpackage  Install
 */

/** abstract base class */
require_once 'SetupDb.php';

/**
 * Install_Mysql
 *
 * @category    Madoqua
 * @package     Module
 * @subpackage  Install
 */
class Install_Mysql extends Install_SetupDb {

    /**
     * can we install?
     *
     * @return bool
     */
    public function canInstall()
    {
        return true;
    }

    /**
     * set up database tables
     */
    public function install()
    {
        $sql = $this->getSql('mysql');
        //fetch the relevant sql statements for MySql
        
        try {
            foreach($sql as $query) {
                $this->_connection->query($query);
                //execute all queries... one by one...
            }
        } catch (Zend_Db_Exception $e) {
            return false;
        }
        return true;
    }


}